package org.example.fronted.service.impl;

import org.example.admin.service.GoodsService;
import org.example.entity.Goods;
import org.example.fronted.mapper.GoodMapper;
import org.example.fronted.service.GoodService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class GoodServiceImpl implements GoodService {
    @Resource
    private GoodMapper goodMapper;

    @Override
    public List<Goods> selectAllGoods() {
      return goodMapper.selectList(null);
    }

    @Override
    public List<Goods> findGoodsByIdList(List<Integer> IDList) {
      return  goodMapper.getGoodsByIdList(IDList);
    }
}
